Skip to content

Conversation

@krishnangovindraj
Copy link
Member

@krishnangovindraj krishnangovindraj commented Oct 6, 2025

Usage and product changes

Adds support for the analyze endpoint to rust driver.

Implementation

Implement protocol serialization/deserialization and request/response handling.

@krishnangovindraj krishnangovindraj changed the title Grpc query structure Add analyze endpoint to rust driver Oct 6, 2025
@krishnangovindraj krishnangovindraj self-assigned this Oct 6, 2025
@krishnangovindraj krishnangovindraj marked this pull request as ready for review October 6, 2025 18:04
@flyingsilverfin flyingsilverfin force-pushed the master branch 2 times, most recently from 0cb6566 to 570fd60 Compare October 15, 2025 18:45
@krishnangovindraj krishnangovindraj changed the base branch from master to feature/grpc-driver-analyze October 20, 2025 10:27
Comment on lines +147 to +179
#[repr(C)]
#[derive(Debug, Clone)]
pub enum Comparator {
Equal,
NotEqual,
LessThan,
LessOrEqual,
Greater,
GreaterOrEqual,
Like,
Contains,
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just keep things simple and use a string?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah let's do that

Copy link
Member Author

@krishnangovindraj krishnangovindraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also TODO: Expose involvedBlocks in ConceptRow Done

35: "TLS connections can only be enabled when connecting to HTTPS endpoints, for example using 'https://<ip>:port'. Please modify the address, or disable TLS (WARNING: this will send passwords over plaintext).",
NonTlsConnectionWithHttps =
36: "Connecting to an https endpoint requires enabling TLS in driver options.",
AnalyzeQueryNoResponse =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AnalyzeNoResponse

Copy link
Member

@flyingsilverfin flyingsilverfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

my only fear is now the docs API page is gonna get bigger but that feels like a docs representation problem not a source code problem!

/// as well as the result of types inferred for each variable by type-inference.
#[derive(Debug, Clone)]
pub struct AnalyzedQuery {
pub source: String,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yas

}

//
// impl TryFromProto<analyze_proto::Fetch> for Fetch {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member

@flyingsilverfin flyingsilverfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHeck comments but approval stands

@krishnangovindraj krishnangovindraj merged commit a6ea6d9 into typedb:feature/grpc-driver-analyze Oct 22, 2025
6 of 9 checks passed
krishnangovindraj added a commit that referenced this pull request Nov 10, 2025
## Usage and product changes
Adds support for the analyze endpoint to rust driver.

## Implementation
Implement protocol serialization/deserialization and request/response handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants